﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApp
{
    public class CommentDal
    {
        public static List<Comment> GetCommentList()
        {
            List<Comment> list = new List<Comment>();
            for (int i = 1; i <= 100000; i++)
            {
                Comment obj = new Comment();
                obj.ID = i;
                obj.Title = "title_" + i;
                obj.Content = "content_" + i;
                list.Add(obj);
            }
            return list;
        }

        public static List<Comment> GetOneRowComment()
        {
            var list = new List<Comment>();
            var model = new Comment()
            {
                ID=1,
                Title="title_2_1",
                Content="content_2_1"
            };
            list.Add(model);
            return list;
        }
    }
}
